package com.gaoch.simweather.tools

import android.util.Log

object LogUtil {
    private const val VERBOSE=1
    private const val DEBUG=1
    private const val INFO=1
    private const val WARN=1
    private const val ERROR=1
    private var level= VERBOSE
    private const val TAG="SimWeatherKotlin"
    fun v(tag:String=TAG,msg:String){
        if(level<= VERBOSE){
            Log.v(tag, msg)
        }
    }
    fun d(tag:String=TAG,msg:String){
        if(level<= DEBUG){
            Log.d(tag, msg)
        }
    }
    fun i(tag:String=TAG,msg:String){
        if(level<= INFO){
            Log.i(tag, msg)
        }
    }
    fun w(tag:String=TAG,msg:String){
        if(level<= WARN){
            Log.w(tag, msg)
        }
    }
    fun e(tag:String=TAG,msg:String){
        if(level<= ERROR){
            Log.e(tag, msg)
        }
    }


}